<:#284,9360> sendkeys(" ") ' send a space to check the box
<:#284,9360>endif
<:#568,9360>sendkeys("<:f240,BArial,255,0,0><[>enter]<:f>") ' U sets US 437 in US, need to localize for each country, also alt+f+space sets field names as first record option
<:#568,9360>'sendkeys("<:f240,BArial,255,0,0><[>alto]<[>altt]<:f240,BArial,0,0,255>m<:f240,BArial,255,0,0><[>enter]<:f>") ' U sets US 437 in US, need to localize for each country
<:#568,9360>sendkeys("<:f240,BArial,255,0,0><[>alte<:f><:f240,BArial,255,0,0>]a<:f><:f240,BArial,255,0,0><[>tab]{filename}<:f><:f240,BArial,255,0,0><[>enter]<[>altm]<[>enter]<:f>") ' command organizer to export ascii format to file and map all fields
<:#284,9360> sendkeys(" ") ' send a space to check the box
<:#284,9360>endif
<:#568,9360>sendkeys("<:f240,BArial,255,0,0><[>enter]<:f>") ' U sets US 437 in US, need to localize for each country, also alt+f+space sets field names as first record option
<:#568,9360>'sendkeys("<:f240,BArial,255,0,0><[>alto]<[>altt]<:f240,BArial,0,0,255>m<:f240,BArial,255,0,0><[>enter]<:f>") ' U sets US 437 in US, need to localize for each country
<:#568,9360>sendkeys("<:f240,BArial,255,0,0><[>alte<:f><:f240,BArial,255,0,0>]a<:f><:f240,BArial,255,0,0><[>tab]{filename}<:f><:f240,BArial,255,0,0><[>enter]<[>altm]<[>enter]<:f>") ' command organizer to export ascii format to file and map all fields
<:#284,9360><:f240,BArial,255,0,0> case "February"
<:#284,9360><:f240,BArial,255,0,0> return 02
<:#284,9360><:f240,BArial,255,0,0> case "March"
<:#284,9360><:f240,BArial,255,0,0> return 03
<:#284,9360><:f240,BArial,255,0,0> case "April"
<:#284,9360><:f240,BArial,255,0,0> return 04
<:#284,9360><:f240,BArial,255,0,0> case "May"
<:#284,9360><:f240,BArial,255,0,0> return 05
<:#284,9360><:f240,BArial,255,0,0> case "June"
<:#284,9360><:f240,BArial,255,0,0> return 06
<:#284,9360><:f240,BArial,255,0,0> case "July"
<:#284,9360><:f240,BArial,255,0,0> return 07
<:#284,9360><:f240,BArial,255,0,0> case "August"
<:#284,9360><:f240,BArial,255,0,0> return 08
<:#284,9360><:f240,BArial,255,0,0> case "September"
<:#284,9360><:f240,BArial,255,0,0> return 09
<:#284,9360><:f240,BArial,255,0,0> case "October"
<:#284,9360><:f240,BArial,255,0,0> return 10
<:#284,9360><:f240,BArial,255,0,0> case "November"
<:#284,9360><:f240,BArial,255,0,0> return 11
<:#284,9360><:f240,BArial,255,0,0> case "December"
<:#284,9360> return 12
<:#284,9360>endswitch
<:#284,9360>end function
@Function@<:#293,9360>
<:#284,9360>
<:#284,9360>FUNCTION AutoCal(year, month)
<:#284,9360>ignorekeyboard(1)
@Remark@<:#284,9360>'Declaration of Variables
<:#284,9360>DEFSTR Month1 <:f160,2Tms Rmn,255,0,0>'This variable contains the month direct from the dialog box.<:f>
<:#284,9360>DEFSTR Year1 <:f160,2Tms Rmn,255,0,0> 'This variable contains the year direct from dialog box (YYYY).<:f>
<:#284,9360>DEFSTR LMonth <:f160,2Tms Rmn,255,0,0> 'This variable contains the calendar month in lower case.<:f>
<:#284,9360>DEFSTR NMonth <:f160,2Tms Rmn,255,0,0> 'This variable contains the month and day of Calendar Date (MM/DD/).<:f>
<:#284,9360>DEFSTR Stat1 <:f160,2Tms Rmn,255,0,0>'This variable checks for Cancel from dialog box.<:f>
<:#284,9360>DEFSTR FirstDayWeek <:f160,2Tms Rmn,255,0,0> 'This contains the Value of the day of the week the month starts on.<:f>
<:#284,9360>DEFSTR LastDay <:f160,2Tms Rmn,255,0,0>'This contains the value of the number of days in current month.<:f>
<:#284,9360>DEFSTR ChkLen <:f160,2Tms Rmn,255,0,0>'This contains the value representing the number of characters in the year that was typed in Heymon.<:f>
<:#284,9360>DEFSTR CurStyleSheet <:f160,2Tms Rmn,255,0,0>'This contains the style sheet for the current dicument<:f>
<:#284,9360>DEFSTR CurDocName <:f160,2Tms Rmn,255,0,0> 'This contains the name of the current document.<:f>
<:#284,9360>DEFSTR TotalWindows <:f160,2Tms Rmn,255,0,0>'This contains the number of MDI windows open when starting macro.
@Remark@<:#284,9360>'Declaration of Functions.
<:#284,9360>DECLARE BuildDate(M,Y,N)
<:#284,9360>DECLARE FillCalendar(F,L)
<:#284,9360>DECLARE CheckLeap(M,Y,N)
<:#284,9360>DECLARE AdjustTable()
<:#284,9360>NW=IsNewWave()
<:#284,9360>if nw = 1
<:#284,9360> message("<:f240,BArial,255,0,0>Unable to run under NewWave.<:f>", "Ami Pro")
<:#284,9360> return 0
<:#284,9360>ENDIF
<:#284,9360>LayoutMode()
<:#284,9360>FullPageView()
<:#284,9360>rmac = getrunningmacrofile$()
<:#284,9360>tryagain:
@Remark@<:#284,9360>'Fill Edit boxes with current Month and Year.
<:#568,9360><:f240,BArial,255,0,0>15 51 163 16 1008 1342177280 "static" "Choose this 'Monthly Organizer Calendar' feature and choose a month and a year for the calendar." 0